
// functions for backend

// add additional error checkings on global backend submitfunction
function submitbutton(pressbutton)
{
	if(pressbutton=="save" && document.adminForm.act.value=="config")
	{
		var error_invalid_values = document.adminForm.error_invalid_values.value;
		var error_fields = new Array();
		var j = 0;
		var error_output = "";
		
		error_output = error_invalid_values + "\n\r";
		for(var k = 0; k < j; ++k) error_output += "- " + error_fields[k] + "\n\r";
		if(error_fields.length>0) alert(error_output);
		else submitform(pressbutton);
		return;
	}
	submitform(pressbutton);
}

// end of functions for backend
